import axios from "axios"
import { useUserInfoStore } from '@/pinia/userinfo'
let userStore = useUserInfoStore()
const request = axios.create({
	timeout:20000,//超时时间
	headers:{
		token:userStore.getToken,
		uname:userStore.getUsername
	}
})
export function getUrl(url){//拼接url
	return "http://127.0.0.1:9999/v2/"+url
}
export default request